#include "app_pool.h"

void task(void *data)
{
    log_info("task..... %d", *(int *)data);
}

int main(int argc, char const *argv[])
{
    app_pool_init(10);

    for (size_t i = 0; i < 20; i++)
    {
        int *j = malloc(sizeof(int));
        *j = i;
        app_pool_add_task(task, j);
    }

    sleep(100000);

    return 0;
}
